/*
 * @Script: t4.c
 * @Author: ystlong
 * @Email: ystlong@163.com
 * @Create At: yyyy-03-dd 20:53:32
 * @Last Modified By: ystlong
 * @Last Modified At: yyyy-03-dd 20:53:32
 * @Description: This is description.
 */

#include <stdio.h>

int main()
{
    for(int i=15; i<1000; i+= 15){
        if (i % 10 != 0) printf("%d ", i);
    }
    printf("\n");
    for(int i=0; i<1000; i++){
        if (i %3 == 0 && i%5==0 && i%10 != 0) printf("%d ", i);
    }
    return 0;
}